PLAY/RECORD

Section: Maintenance Commands (8)
Updated: LOCAL
Index Return to Main Contents
 

NAME

play - plays .WAV-Files

record - records .WAV-Files  

SYNOPSIS

play [-S] [-s speed] [-t limit] [-b bits] [-q] [-h] [filename]

record [-S] [-s speed] [-t limit] [-b bits] [-q] [-h] [filename]  

DESCRIPTION

Play plays sound files in the .WAV-format of MS-Windows 3.1 through your sound card. Without any switches all needed parameters like speed (sample_frequency), mode (stereo / mono), bits per sample (8, 12, 16) will be taken from the header of the given file. You can overwrite these parameters by using the switches.

Record samples data coming from your external devices like microphones, recorders, CD-players, radios; whatever connected to your sound card. The data will be saved in the .WAV-format. If you don't use any switches, default values will be taken.

Defaults for recording:

speed - 22050 Hz

time - 10 seconds

bits - 8 Bits

mode - mono

If no files are given, the input of the player will be taken from stdin, the output of the recorder will be written to stdout. All messages (which can be suppressed with the -q switch) will be written to stderr.  

OPTIONS

-S - sets stereo-mode

-s speed - sets the sample frequency in Hz

-t limit - sets the time limit in seconds

-b bits - sets the sample size to 8, 12 or 16 bits. The Soundblaster card supports only 8 bit!

-q - quiet mode, no terminal output

-h - gives a help text  

FILES

/usr/local/bin/play - player

/usr/local/bin/record - record  

DIAGNOSTICS

If any error occurs, a message will be printed out and the program will be exited (with one exception - see below) returning an error code of -1.

The player checks the header of the files. The error-message "wrong speed/freq." is only a warning and doesn't influence the playing.  

BUGS

Probably a lot.

The error handling is not very good.

The output of the recording in stereo mode seems to be stereo samples with mono data. (Stereo samples will be played in stereo, samples recorded with this command won't!)  

EXAMPLES

cat sample. | play plays sample.wav

play sample.wav 
plays this sample too

record -S -t 10 -s 10000 test.wav records data in stereo with a speed of 10000 Hz for 10 seconds  

AUTHOR

Andre Fuechsel (C) FF-Soft '93

e-mail: af1@irz.inf.tu-dresden.de


 

Index

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
FILES
DIAGNOSTICS
BUGS
EXAMPLES
AUTHOR

This document was created by man2html, using the manual pages.
Time: 01:19:15 GMT, October 03, 2022